package com.intelligent.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 收款核销表
 * @TableName receipt_write_off
 */
@TableName(value ="receipt_write_off")
@Data
public class ReceiptWriteOff implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 核销单号
     */
    private String writeOffNo;

    /**
     * 客户ID：可能关联 customer_management.id 或 customer_info.id
     */
    private Long customerId;

    /**
     * 收款单ID
     */
    private Integer receiptOrderId;

    /**
     * 应收明细ID（可选）
     */
    private Long receivableDetailId;

    /**
     * 本次核销金额
     */
    private BigDecimal amount;

    /**
     * 核销日期
     */
    private Date writeOffDate;

    /**
     * 经办人/财务人员
     */
    private Integer uId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}